package com.ttt.gdfood.controller;

import com.ttt.gdfood.service.MinioService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

@RestController
@RequestMapping("/minioO")
@CrossOrigin
public class MinioController {
    @Autowired
    MinioService minioService;
    @PostMapping("/addImage")
    public void addImage(@RequestParam("file") MultipartFile[] image) {
        minioService.uploadImage(image);
    }
}
